#ifndef PARAMUI_H
#define PARAMUI_H

#include <QWidget>

namespace Ui {
class ParamUI;
}

class ParamUI : public QWidget
{
    Q_OBJECT

public:
    explicit ParamUI(QWidget *parent = 0);
    ~ParamUI();
    static QString qstrDianya;
    static QString qstrMaikuan;
    static QString qstrCishu;
    static QString qstrJiange;
    static QString qstrLiusu;
    static QString qstrName;
    static QString qstrId;
    static QString qstrBarcode;
    static QString qstrCell;
    static bool blYaodong;
    static bool blValidate;
    static float fTimeSpan;

private slots:
    void updateTime();

    void on_btnRet_clicked();
    void getShow();

    void on_btnOk_clicked();

    void on_btn1_clicked();

    void on_btn2_clicked();

    void on_btn3_clicked();

    void on_btn4_clicked();

    void on_btn5_clicked();

    void on_btn6_clicked();

    void on_btn7_clicked();

    void on_btn8_clicked();

    void on_btn9_clicked();

    void on_btnC_clicked();

    void on_btn0_clicked();

    void on_btnD_clicked();

    void on_btnDot_clicked();

    void on_tMaikuan_textEdited(const QString &arg1);

    void on_tCishu_textEdited(const QString &arg1);

    void on_tJiange_textEdited(const QString &arg1);

    void on_tLiusu_textEdited(const QString &arg1);

signals:
    void retMain();
    void paramSet(int iType);

private:
    bool eventFilter(QObject *target, QEvent *event);
    void appendNum(QString qNum);
    Ui::ParamUI *ui;
    int iDxEdit;
};

#endif // PARAMUI_H
